package com.kupurui.asteacher.adapter;

import android.content.Context;

import com.android.frame.adapter.CommonAdapter;
import com.android.frame.adapter.ViewHolder;
import com.kupurui.asteacher.R;
import com.kupurui.asteacher.bean.SubmitDetailsInfo;

import java.util.List;

/**
 * Created by Administrator on 2017/7/25.
 */

public class SubmitDetailsAdapter2 extends CommonAdapter<SubmitDetailsInfo.PingjiaBean>{
    public SubmitDetailsAdapter2(Context context, List<SubmitDetailsInfo.PingjiaBean> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
    }

    @Override
    public void convert(ViewHolder holder, SubmitDetailsInfo.PingjiaBean item, int positon) {
        holder.setImageByUrl(R.id.imgv_head,item.getImg());
        holder.setTextViewText(R.id.tv_name,item.getUsername());
        holder.setTextViewText(R.id.tv_btn,"查看详情");
    }
}
